<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>搜索</title>
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
#parse("adminTop.html")
<table width="600" border="0" align="center" cellpadding="0"
	cellspacing="5">
	<tr>
		<td>
		<form method="POST" action="adminSearch.html">输入关键词：<input
			type="text" name="q" value="" /> 搜索类型： <input type="radio"
			checked="checked" name="type" value="user" />用户 <input type="radio"
			name="type" value="album" />相册 <input type="radio" name="type"
			value="image" />图片 <input type="submit" name="submit" value="搜索" /></form>
		#if($!{do})
		<h2>搜索结果</h2>

		<p>关键字为：$!{q},搜索类型为$!{type},用时：$!{time}</p>
		#if($!{type}=="user") #foreach($user in $userList)
		<p><a href="../userHome.html?userId=$!{user.id}"><img
			src="../readImage.html?id=$!{user.headPic}">$!{user.nickName}</a> <a
			href="deleteUser.html?userId=$!{user.id}">删除</a></p>
		#end #elseif($!{type}=="album") #foreach($album in $albumList)
		<p><a href="../showAlbum.html?albumId=$!{album.id}"><img
			src="../readImage.html?id=$!{album.cover}s">$!{album.title}</a>
		<a href="deleteAlbum.html?albumId=$!{album.id}">删除</a></p>
		#end #else #foreach($image in $imageList)
		<p><a href="../imageDetail.html?imageId=$!{image.id}"><img
			src="../readImage.html?id=$!{image.url}s">$!{image.title}</a>
		<a href="deleteImage.html?imageId=$!{image.id}">删除</a></p>
		#end #end #end</td>
	</tr>
</table>
</body>
</html>